package com.lsp.microuser.point.task;

import com.lsp.microuser.point.service.PointRetryService;
import com.xxl.job.core.context.XxlJobHelper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class PointTask {

    @Resource
    private PointRetryService pointRetryService;
//  这里不写复杂逻辑，逻辑写到业务层
//    @XxlJob("retryPointTask")
    public void retryPointTask(){
        XxlJobHelper.log("执行积分的补偿机制");
        pointRetryService.pointRetry();
    }
}
